<?php
/**
 * Created by PhpStorm.
 * User: Ghost
 * Date: 2017/5/12
 * Time: 11:15
 */
namespace app\common\validate;


use think\Validate;

class Order extends Validate
{
    protected $rule = [
        'maphone'  =>  'unique:order',
        'otherphone' => 'unique:order',
        'qq' => 'unique:order',
        'weixin' => 'unique:order',
    ];
    protected $message =[
        'maphone.unique'=>'妈妈电话号码已存在',
        'otherphone.unique'=>'爸爸电话号码已存在',
        'qq.unique' => 'QQ号码已存在',
        'weixin.unique' => '微信号码已存在',
    ];
    protected $scene = [
//        'add'   =>  ['selfpg'],
//        'update'=>['zlyjx1','zlyjx2','gsjy','zpg'],
    ];
}